<template>
  <div class="vheader">
    <div class="movie-header clearfix">
      <div class="logo">
        <img class="img-responsive" src="../../assets/logo.png"/>
      </div>
      <div class="title">
        <h3>狗眼电影</h3>
        <p>查影讯，上狗眼电影就够了！</p>
      </div>
      <div class="input"><input type="text" placeholder="请输入电影名" @focus="onsearch"></div>
    </div>
    <div class="movie-links clearfix">
      <router-link class="are-playing" to="../inTheaters">正在热映</router-link>
      <router-link class="will-play"   to="../comingSoon">即将上映</router-link>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
    }
  },
  methods: {
    onsearch () {
      this.$router.push('../searchPage')
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
  @import url("../../assets/common.css");

  /*movie-header section*/
  .movie-header{
    padding: 10px 20px;
  }

  .logo,.title{
    float: left;
  }

  .logo{
    width: 42px;
    height: 42px;
  }

  .title{
    line-height: 1.2;
    margin-left: 5px;
    h3{
      margin: 0;
      font-size: 18px;
      font-weight: bolder;
    }
    p{
      margin: 0;
      font-size: 12px;
    }
  }

  .input{
    float: right;
    line-height: 43px;

    input{
      border: none;
      border-radius: 10px;
      width: 80px;
      padding: 10px;
      font-size: 12px;
    }
  }

  /*movie-links section*/
  .movie-links{
    background-color: #df2d2d;

    a{
      text-decoration: none;
      font-size: 20px;
      color: #F9FAFC;

      display: block;
      width: 50%;
      float: left;

      text-align: center;
      line-height: 35px;

      &:focus{
        outline: none;
      }
    }

    .are-playing{

    }

    .will-play{

    }
  }

</style>
